import base64
import pickle
import sys


def pickle_loads_from_str(obj_str):
    try:
        return pickle.loads(base64.decodebytes(obj_str.encode()))
    except pickle.UnpicklingError:
        pass
class Student:
    def __init__(self):
        self.name = '123'
    def talk(self):
        print(self.name)
def main():
    student_obj = sys.argv[-1]
    # 载入 Student 对象实例
    obj = pickle_loads_from_str(student_obj)
    print(obj.talk())

if __name__ == '__main__':
    main()